/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.*;

import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.JFileChooser;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class IngresoGarantiaHipotecaria extends javax.swing.JFrame {
    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();

    /**
     * Creates new form IngresoGarantiaHipotecaria
     */
    public IngresoGarantiaHipotecaria(usuarioDTO user) {
        this.user = user;
        initComponents();
        cargarItemsComboBoxSucursal();
        cargarItemsComboBoxCobertura();
        cargarItemsComboBoxMoneda();
        cargarItemsComboBoxTipoConstruccion();
        cargarItemsComboBoxComuna();
        cargarItemsComboBoxEstadoContribucion();
        cargarItemsComboBoxLocalidadRegistro();
        cargarItemsComboBoxTipoGarantia();
        cargarItemsComboBoxGradoPreferencia();
        txtFechaCreacion.setText(DAO.Fechas.FechaSistema());  
       
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }

    private void cargarItemsComboBoxSucursal() {
        List<sucursalDTO> ListaSucursal = CCSucursal.listarItemSucursal();
        if (ListaSucursal != null) {
            int size = ListaSucursal.size();
            for (int i = 0; i < size; i++) {
                this.cmbSucursalHipo.addItem(ListaSucursal.get(i));
            }
        }
    }

    private void cargarItemsComboBoxCobertura() {
        List<coberturaDTO> ListaCobertura = CCCobertura.listarItemCobertura();
        if (ListaCobertura != null) {
            int size = ListaCobertura.size();
            for (int i = 0; i < size; i++) {
                this.cmbCoberturaHipo.addItem(ListaCobertura.get(i));
            }
        }
    }

    private void cargarItemsComboBoxMoneda() {
        List<monedaDTO> ListaMoneda = CCMoneda.listarItemMoneda();
        if (ListaMoneda != null) {
            int size = ListaMoneda.size();
            for (int i = 0; i < size; i++) {
                this.cmbMoneda.addItem(ListaMoneda.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoConstruccion() {
        List<tipoConstruccionDTO> ListaTipoConstru = CCTipoConstruccion.listarItemConstruccion();
        if (ListaTipoConstru != null) {
            int size = ListaTipoConstru.size();
            for (int i = 0; i < size; i++) {
                this.cmbTipoConstru.addItem(ListaTipoConstru.get(i));
            }
        }
    }

    private void cargarItemsComboBoxComuna() {
        List<comunaDTO> ListaComuna = CCComuna.listarItemComuna();
        if (ListaComuna != null) {
            int size = ListaComuna.size();
            for (int i = 0; i < size; i++) {
                this.cmbComuna.addItem(ListaComuna.get(i));
            }
        }
    }

    private void cargarItemsComboBoxEstadoContribucion() {
        List<estadoContribucionDTO> ListaEstadoContri = CCEstadoContribucion.listarItemEstadoContribucion();
        if (ListaEstadoContri != null) {
            int size = ListaEstadoContri.size();
            for (int i = 0; i < size; i++) {
                this.cmbEstadoContribucion.addItem(ListaEstadoContri.get(i));
            }
        }
    }

    private void cargarItemsComboBoxLocalidadRegistro() {
        List<localidadRegistroDTO> ListaLocalidadReg = CCLocalidadRegistro.listarItemLocalidadRegistro();
        if (ListaLocalidadReg != null) {
            int size = ListaLocalidadReg.size();
            for (int i = 0; i < size; i++) {
                this.cmbLocalRegistro.addItem(ListaLocalidadReg.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoGarantia() {
        List<tipoGarantiaDTO> ListaTipoGtia = CCTipoGarantia.listarItemTipoGarantia();
        if (ListaTipoGtia != null) {
            int size = ListaTipoGtia.size();
            for (int i = 0; i < size; i++) {
                this.cmbTipoGtiaHipo.addItem(ListaTipoGtia.get(i));
            }
        }
    }

    private void cargarItemsComboBoxGradoPreferencia() {
        List<gradoProferenciaDTO> ListaGradoPrefere = CCGradoPreferencia.listarItemGradoPreferencia();
        if (ListaGradoPrefere != null) {
            int size = ListaGradoPrefere.size();
            for (int i = 0; i < size; i++) {
                this.cmbGradoPrefereHipo.addItem(ListaGradoPrefere.get(i));
            }
        }
    }
//    private void cargarTxtArea(){
//    
//        
//        String cadena = "prueba garantia hipotecaria";
//        
//        if(txtRutGara.getText().length()>0){
//        txtDescripcion.setText(cadena);
//        }
//        else
//        {
//        
//        }
//    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        lblRut = new javax.swing.JLabel();
        txtRutBuscar = new javax.swing.JTextField();
        btnBuscar = new javax.swing.JButton();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        lblRutGara = new javax.swing.JLabel();
        lblApellidoPater = new javax.swing.JLabel();
        lblApellidoMater = new javax.swing.JLabel();
        lblNombre = new javax.swing.JLabel();
        lblFechNac = new javax.swing.JLabel();
        lblSexo = new javax.swing.JLabel();
        txtFechNac = new javax.swing.JTextField();
        txtNombre = new javax.swing.JTextField();
        txtApellidoMaterno = new javax.swing.JTextField();
        txtApellidoPaterno = new javax.swing.JTextField();
        txtRutGara = new javax.swing.JTextField();
        txtSexo = new javax.swing.JTextField();
        jPanel8 = new javax.swing.JPanel();
        lblCalleAvenida = new javax.swing.JLabel();
        lblNumero = new javax.swing.JLabel();
        lblDepto = new javax.swing.JLabel();
        lblRegion = new javax.swing.JLabel();
        lblComuna = new javax.swing.JLabel();
        lblTelParticular = new javax.swing.JLabel();
        lblTelMovil = new javax.swing.JLabel();
        txtCalleAvenida = new javax.swing.JTextField();
        txtNumero = new javax.swing.JTextField();
        txtDepto = new javax.swing.JTextField();
        txtRegion = new javax.swing.JTextField();
        txtComuna = new javax.swing.JTextField();
        txtTelParticular = new javax.swing.JTextField();
        txtTelMovil = new javax.swing.JTextField();
        btnMenuPrincipal = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtOtroComentario = new javax.swing.JTextArea();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcion = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        pnlCreacionGaraHipo = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        cmbGradoPrefereHipo = new javax.swing.JComboBox();
        cmbTipoGtiaHipo = new javax.swing.JComboBox();
        txtFojasHipo = new javax.swing.JTextField();
        txtAñoRepertHipo = new javax.swing.JTextField();
        txtMtsConstruHipo = new javax.swing.JTextField();
        jcFechExtincionHipo = new com.toedter.calendar.JDateChooser();
        jcFechUltRevalHipo = new com.toedter.calendar.JDateChooser();
        jcFechUltCredHipo = new com.toedter.calendar.JDateChooser();
        jPanel10 = new javax.swing.JPanel();
        jLabel46 = new javax.swing.JLabel();
        txtArchivo = new javax.swing.JTextField();
        btnExaminar = new javax.swing.JButton();
        btnAdjuntar = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txtDireCredito = new javax.swing.JTextField();
        cmbSucursalHipo = new javax.swing.JComboBox();
        cmbCoberturaHipo = new javax.swing.JComboBox();
        txtSuperficie = new javax.swing.JTextField();
        txtRegCbr = new javax.swing.JTextField();
        txtRolSii = new javax.swing.JTextField();
        txtUniSuperficie = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        txtNum = new javax.swing.JTextField();
        cmbLocalRegistro = new javax.swing.JComboBox();
        jLabel26 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        cmbEstadoContribucion = new javax.swing.JComboBox();
        cmbComuna = new javax.swing.JComboBox();
        jLabel24 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        cmbTipoConstru = new javax.swing.JComboBox();
        cmbMoneda = new javax.swing.JComboBox();
        jLabel22 = new javax.swing.JLabel();
        jcFechUltDebito = new com.toedter.calendar.JDateChooser();
        jcFechUltTasacion = new com.toedter.calendar.JDateChooser();
        jcFechModifi = new com.toedter.calendar.JDateChooser();
        txtFechaCreacion = new javax.swing.JTextField();
        jPanel11 = new javax.swing.JPanel();
        lblArchivo1 = new javax.swing.JLabel();
        txtMontoInicial = new javax.swing.JTextField();
        btnMenuPrinci = new javax.swing.JButton();
        btnGrabar = new javax.swing.JButton();
        btnExpoHipo = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        btnBuscarIngresoGarantiaHipotecaria = new javax.swing.JButton();
        txtBuscarRolSii = new javax.swing.JTextField();
        jPanel13 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tbSalidaImprimirHipo = new javax.swing.JTable();
        btnImprimirIngresoGarantiaHipotecaria = new javax.swing.JButton();
        btnMenuPrincialHipo = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("INGRESO GARANTÍA HIPOTECARIA");
        setResizable(false);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("INGRESO GARANTÍA HIPOTECARIA");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblRut.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRut.setText("RUT");

        btnBuscar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscar.setText("BUSCAR");
        btnBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblRut)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRutBuscar)
                    .addComponent(btnBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRut)
                    .addComponent(txtRutBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscar)
                .addContainerGap())
        );

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblRutGara.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRutGara.setText("RUT");

        lblApellidoPater.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblApellidoPater.setText("APELLIDO PATERNO");

        lblApellidoMater.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblApellidoMater.setText("APELLIDO MATERNO");

        lblNombre.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNombre.setText("NOMBRE");

        lblFechNac.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechNac.setText("FECHA NACIMIENTO");

        lblSexo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblSexo.setText("SEXO");

        txtFechNac.setEditable(false);
        txtFechNac.setBackground(new java.awt.Color(255, 255, 102));
        txtFechNac.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechNac.setEnabled(false);

        txtNombre.setEditable(false);
        txtNombre.setBackground(new java.awt.Color(255, 255, 102));
        txtNombre.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombre.setEnabled(false);

        txtApellidoMaterno.setEditable(false);
        txtApellidoMaterno.setBackground(new java.awt.Color(255, 255, 102));
        txtApellidoMaterno.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellidoMaterno.setEnabled(false);

        txtApellidoPaterno.setEditable(false);
        txtApellidoPaterno.setBackground(new java.awt.Color(255, 255, 102));
        txtApellidoPaterno.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellidoPaterno.setEnabled(false);

        txtRutGara.setEditable(false);
        txtRutGara.setBackground(new java.awt.Color(255, 255, 102));
        txtRutGara.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutGara.setEnabled(false);

        txtSexo.setEditable(false);
        txtSexo.setBackground(new java.awt.Color(255, 255, 102));
        txtSexo.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSexo.setEnabled(false);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFechNac)
                            .addComponent(lblSexo)
                            .addComponent(lblNombre))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                            .addComponent(txtFechNac, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                            .addComponent(txtSexo)))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblApellidoMater)
                            .addComponent(lblApellidoPater)
                            .addComponent(lblRutGara))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtRutGara, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtApellidoPaterno, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtApellidoMaterno, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(87, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRutGara)
                    .addComponent(txtRutGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblApellidoPater)
                    .addComponent(txtApellidoPaterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblApellidoMater)
                    .addComponent(txtApellidoMaterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNombre)
                    .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFechNac)
                    .addComponent(txtFechNac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSexo)
                    .addComponent(txtSexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblCalleAvenida.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblCalleAvenida.setText("CALLE / AVENIDA");

        lblNumero.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNumero.setText("NÚMERO");

        lblDepto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDepto.setText("DEPTO.");

        lblRegion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRegion.setText("REGIÓN");

        lblComuna.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblComuna.setText("COMUNA");

        lblTelParticular.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblTelParticular.setText("TEL. PARTICULAR");

        lblTelMovil.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblTelMovil.setText("TEL. MOVIL");

        txtCalleAvenida.setEditable(false);
        txtCalleAvenida.setBackground(new java.awt.Color(255, 255, 102));
        txtCalleAvenida.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtCalleAvenida.setEnabled(false);

        txtNumero.setEditable(false);
        txtNumero.setBackground(new java.awt.Color(255, 255, 102));
        txtNumero.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumero.setEnabled(false);

        txtDepto.setEditable(false);
        txtDepto.setBackground(new java.awt.Color(255, 255, 102));
        txtDepto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDepto.setEnabled(false);

        txtRegion.setEditable(false);
        txtRegion.setBackground(new java.awt.Color(255, 255, 102));
        txtRegion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRegion.setEnabled(false);

        txtComuna.setEditable(false);
        txtComuna.setBackground(new java.awt.Color(255, 255, 102));
        txtComuna.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtComuna.setEnabled(false);

        txtTelParticular.setEditable(false);
        txtTelParticular.setBackground(new java.awt.Color(255, 255, 102));
        txtTelParticular.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTelParticular.setEnabled(false);

        txtTelMovil.setEditable(false);
        txtTelMovil.setBackground(new java.awt.Color(255, 255, 102));
        txtTelMovil.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTelMovil.setEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCalleAvenida)
                    .addComponent(lblRegion)
                    .addComponent(lblComuna)
                    .addComponent(lblTelParticular)
                    .addComponent(lblTelMovil)
                    .addComponent(lblDepto))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtTelParticular, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(txtComuna)
                            .addComponent(txtRegion)
                            .addComponent(txtTelMovil, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtCalleAvenida))
                        .addGap(12, 12, 12)
                        .addComponent(lblNumero)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNumero, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(txtDepto, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCalleAvenida)
                    .addComponent(txtCalleAvenida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNumero)
                    .addComponent(txtNumero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDepto)
                    .addComponent(txtDepto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtRegion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblRegion))
                .addGap(7, 7, 7)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtComuna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblComuna))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelParticular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTelParticular))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelMovil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTelMovil))
                .addContainerGap(36, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        btnMenuPrincipal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincipal.setText("MENÚ PRINCIPAL");
        btnMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(299, 299, 299)
                                .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(btnMenuPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnMenuPrincipal)
                .addContainerGap(66, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentario.setColumns(20);
        txtOtroComentario.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentario.setRows(5);
        txtOtroComentario.setText("OTRO COMENTARIO ...");
        txtOtroComentario.setToolTipText("");
        jScrollPane3.setViewportView(txtOtroComentario);

        txtDescripcion.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcion.setColumns(20);
        txtDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcion.setRows(5);
        txtDescripcion.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        jScrollPane4.setViewportView(txtDescripcion);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)
                    .addComponent(jScrollPane3))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(100, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        pnlCreacionGaraHipo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CREACIÓN GARANTÍA HIPOTECARIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N
        pnlCreacionGaraHipo.setPreferredSize(new java.awt.Dimension(692, 600));

        jPanel4.setPreferredSize(new java.awt.Dimension(740, 490));

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("TIPO GARANTÍA");

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("GRADO PREFERENCÍA");

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("MTS. CONSTRUIDOS");

        jLabel17.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel17.setText("AÑOS REPERTORIO");

        jLabel18.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel18.setText("A. FOJAS");

        jLabel19.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel19.setText("FECHA EXTINCIÓN");

        jLabel20.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel20.setText("FECHA ÚLT. REVALUO");

        jLabel21.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel21.setText("FECHA ÚLT. CRÉDITO");

        cmbGradoPrefereHipo.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbGradoPrefereHipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbTipoGtiaHipo.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTipoGtiaHipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        txtFojasHipo.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtFojasHipoKeyReleased(evt);
            }
        });

        txtAñoRepertHipo.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtAñoRepertHipoKeyReleased(evt);
            }
        });

        txtMtsConstruHipo.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtMtsConstruHipoKeyReleased(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jLabel14)
                    .addComponent(jLabel16)
                    .addComponent(jLabel17)
                    .addComponent(jLabel18)
                    .addComponent(jLabel20)
                    .addComponent(jLabel19)
                    .addComponent(jLabel21))
                .addGap(16, 16, 16)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jcFechExtincionHipo, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)
                    .addComponent(jcFechUltRevalHipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(txtFojasHipo)
                    .addComponent(txtAñoRepertHipo)
                    .addComponent(txtMtsConstruHipo)
                    .addComponent(jcFechUltCredHipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cmbGradoPrefereHipo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cmbTipoGtiaHipo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(cmbTipoGtiaHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(cmbGradoPrefereHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(txtMtsConstruHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(txtAñoRepertHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(txtFojasHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jcFechExtincionHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcFechUltRevalHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel20)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel21)
                    .addComponent(jcFechUltCredHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel46.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel46.setText("ARCHIVO");

        txtArchivo.setEditable(false);

        btnExaminar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminar.setText("EXAMINAR");
        btnExaminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarActionPerformed(evt);
            }
        });

        btnAdjuntar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAdjuntar.setText("ADJUNTAR");
        btnAdjuntar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdjuntarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel46)
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addComponent(btnExaminar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnAdjuntar))
                    .addComponent(txtArchivo, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel46)
                    .addComponent(txtArchivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnExaminar)
                    .addComponent(btnAdjuntar))
                .addContainerGap())
        );

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("SUCURSAL");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("COBERTURA");

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("SUPERFICIE");

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("DIRECCIÓN (CRÉDITO)");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("REGISTRO CBR");

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("ROL SII");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("UNIDAD SUPERFICIE");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("FECHA CREACIÓN");

        jLabel13.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel13.setText("FECHA ÚLT. DÉBITO");

        txtDireCredito.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtDireCreditoKeyReleased(evt);
            }
        });

        cmbSucursalHipo.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbSucursalHipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbCoberturaHipo.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbCoberturaHipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        txtSuperficie.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSuperficieKeyReleased(evt);
            }
        });

        txtRegCbr.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRegCbrKeyReleased(evt);
            }
        });

        txtRolSii.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRolSiiKeyReleased(evt);
            }
        });

        txtUniSuperficie.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtUniSuperficieKeyReleased(evt);
            }
        });

        jLabel29.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel29.setText("FECHA MODIFICA.");

        jLabel28.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel28.setText("FECHA ÚLT. TASACIÓN");

        jLabel27.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel27.setText("NÚMERO");

        txtNum.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtNumKeyReleased(evt);
            }
        });

        cmbLocalRegistro.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbLocalRegistro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        jLabel26.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel26.setText("LOCALIDAD REGISTRO");

        jLabel25.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel25.setText("ESTADO CONTRIB.");

        cmbEstadoContribucion.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbEstadoContribucion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbComuna.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbComuna.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));
        cmbComuna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbComunaActionPerformed(evt);
            }
        });

        jLabel24.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel24.setText("COMUNA");

        jLabel23.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel23.setText("TIPO CONSTRUCCIÓN");

        cmbTipoConstru.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTipoConstru.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbMoneda.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbMoneda.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        jLabel22.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel22.setText("MONEDA");

        txtFechaCreacion.setEditable(false);
        txtFechaCreacion.setBackground(new java.awt.Color(255, 255, 0));

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel29)
                            .addComponent(jLabel28)
                            .addComponent(jLabel27)
                            .addComponent(jLabel26)
                            .addComponent(jLabel25)
                            .addComponent(jLabel24)
                            .addComponent(jLabel23)
                            .addComponent(jLabel22))
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cmbLocalRegistro, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jcFechUltTasacion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                                    .addComponent(jcFechModifi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cmbEstadoContribucion, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(txtNum))
                                .addGap(11, 11, 11))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cmbComuna, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cmbTipoConstru, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cmbMoneda, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addContainerGap())))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jLabel13)
                            .addComponent(jLabel12)
                            .addComponent(jLabel5)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(jLabel11))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtDireCredito)
                            .addComponent(cmbCoberturaHipo, 0, 177, Short.MAX_VALUE)
                            .addComponent(cmbSucursalHipo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtFechaCreacion)
                            .addComponent(txtRegCbr, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtRolSii)
                            .addComponent(txtUniSuperficie)
                            .addComponent(txtSuperficie)
                            .addComponent(jcFechUltDebito, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(cmbSucursalHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(cmbCoberturaHipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(txtSuperficie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(txtDireCredito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txtRegCbr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(txtRolSii, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(txtUniSuperficie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel13))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(txtFechaCreacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcFechUltDebito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(cmbMoneda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(cmbTipoConstru, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(cmbComuna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(cmbEstadoContribucion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(cmbLocalRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel27)
                    .addComponent(txtNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel28)
                    .addComponent(jcFechUltTasacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jcFechModifi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "GARANTÍA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo1.setText("MONTO INICIAL");

        txtMontoInicial.setBackground(new java.awt.Color(255, 255, 102));
        txtMontoInicial.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtMontoInicial.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMontoInicial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtMontoInicialActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblArchivo1, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(43, 43, 43)
                .addComponent(txtMontoInicial, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo1)
                    .addComponent(txtMontoInicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(42, 42, 42))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, Short.MAX_VALUE)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(4, 4, 4))
                    .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(14, 14, 14))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(jPanel4);

        javax.swing.GroupLayout pnlCreacionGaraHipoLayout = new javax.swing.GroupLayout(pnlCreacionGaraHipo);
        pnlCreacionGaraHipo.setLayout(pnlCreacionGaraHipoLayout);
        pnlCreacionGaraHipoLayout.setHorizontalGroup(
            pnlCreacionGaraHipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 759, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        pnlCreacionGaraHipoLayout.setVerticalGroup(
            pnlCreacionGaraHipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)
        );

        btnMenuPrinci.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrinci.setText("MENÚ PRINCIPAL >>");
        btnMenuPrinci.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrinciActionPerformed(evt);
            }
        });

        btnGrabar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnGrabar.setText("GRABAR");
        btnGrabar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGrabarActionPerformed(evt);
            }
        });

        btnExpoHipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExpoHipo.setLabel("EXPORTAR");
        btnExpoHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExpoHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlCreacionGaraHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 775, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(btnExpoHipo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnGrabar)
                        .addGap(182, 182, 182)
                        .addComponent(btnMenuPrinci, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraHipo, javax.swing.GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnMenuPrinci)
                    .addComponent(btnGrabar)
                    .addComponent(btnExpoHipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("INGRESO GARANTÍA HIPOTECARIA", jPanel3);

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE ROL SII", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarIngresoGarantiaHipotecaria.setText("BUSCAR");
        btnBuscarIngresoGarantiaHipotecaria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarIngresoGarantiaHipotecariaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtBuscarRolSii, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)
                    .addComponent(btnBuscarIngresoGarantiaHipotecaria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtBuscarRolSii, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarIngresoGarantiaHipotecaria)
                .addGap(5, 5, 5))
        );

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaImprimirHipo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tbSalidaImprimirHipo.setEnabled(false);
        jScrollPane2.setViewportView(tbSalidaImprimirHipo);

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2)
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnImprimirIngresoGarantiaHipotecaria.setText("IMPRIMIR");
        btnImprimirIngresoGarantiaHipotecaria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirIngresoGarantiaHipotecariaActionPerformed(evt);
            }
        });

        btnMenuPrincialHipo.setText("MENÚ PRINCIPAL");
        btnMenuPrincialHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincialHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGap(297, 297, 297)
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 301, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(351, 351, 351)
                .addComponent(btnImprimirIngresoGarantiaHipotecaria, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnMenuPrincialHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnImprimirIngresoGarantiaHipotecaria)
                    .addComponent(btnMenuPrincialHipo))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel9);

        jLabel3.setText("MENÚ PRINCIPAL\\INGRESO GARANTÍA HIPOTECARIA");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel1)
                        .addGap(258, 258, 258))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel3)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(830, 641));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed
        try {
           if(ValidarRutDAO.validarRut(this.txtRutBuscar.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        String buscarPorRut = txtRutBuscar.getText().toString().trim();
        if(txtRutBuscar.getText().length()>0){           
        garanteDTO garante = reg.buscarPorRut(this.txtRutBuscar.getText().trim());
            if (reg.validar_rut(buscarPorRut) == true){      
        this.txtRutGara.setText(garante.getRut_gara());
        this.txtApellidoPaterno.setText(garante.getApell_paterno_gara());
        this.txtApellidoMaterno.setText(garante.getApell_materno_gara());
        this.txtNombre.setText(garante.getNombre_gara());
        this.txtFechNac.setText(garante.getFecha_nac_gara());
        this.txtSexo.setText(garante.getSexo_gara());
        this.txtCalleAvenida.setText(garante.getCalle_gara());
        this.txtNumero.setText(String.valueOf(garante.getNum_gara()));
        this.txtDepto.setText(garante.getDepto_gara());
        this.txtRegion.setText(garante.getReg_gara());
        this.txtComuna.setText(garante.getComu_gara());
        this.txtTelParticular.setText(String.valueOf(garante.getTel_part_gara()));
        this.txtTelMovil.setText(String.valueOf(garante.getTel_mov_gara()));
        this.btnGrabar.setVisible(true);
//        cargarTxtArea();
        }
         else
        { 
         javax.swing.JOptionPane.showMessageDialog(this, "Rut Gatarantía Hipotecaria No Existente");
        
        this.txtRutGara.setText(null);
        this.txtApellidoPaterno.setText(null);
        this.txtApellidoMaterno.setText(null);
        this.txtNombre.setText(null);
        this.txtFechNac.setText(null);
        this.txtSexo.setText(null);
        this.txtCalleAvenida.setText(null);
        this.txtNumero.setText(null);
        this.txtDepto.setText(null);
        this.txtRegion.setText(null);
        this.txtComuna.setText(null);
        this.txtTelParticular.setText(null);
        this.txtTelMovil.setText(null);
        this.txtDescripcion.setText(null);
        this.btnGrabar.setVisible(false);
        }
        }
        else
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut");
            
        }
           
        }else
           {
               javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
           }
        }catch (Exception e) {
            e.getMessage();
            javax.swing.JOptionPane.showMessageDialog(this, "Rut No Existente");
        }
    }//GEN-LAST:event_btnBuscarActionPerformed

    private void btnMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalActionPerformed

    private void btnMenuPrinciActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrinciActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnMenuPrinciActionPerformed

    private void btnGrabarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGrabarActionPerformed
      try
      {
        garantiaHipotecariaDTO garaHipo = new garantiaHipotecariaDTO();
     String rol = txtRolSii.getText().trim(); 
     
     if(txtRutBuscar.getText().length()>0){
        
           if(reg.validar_rol_sii(rol) != true){
        
        if(this.cmbCoberturaHipo.getSelectedIndex() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Tipo de Cobertura");
        }  else if (this.cmbComuna.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Comuna");   
        }else if (this.cmbEstadoContribucion.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Estado de Contribucion");         
        }else if (this.cmbGradoPrefereHipo.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Preferencia Hipotecaria");          
        }else if (this.cmbLocalRegistro.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Local de Registro");           
        }else if (this.cmbMoneda.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Tipo de Modena");   
        }else if (this.cmbSucursalHipo.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Sucursal");           
        }else if (this.cmbTipoConstru.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Tipo de Construccion");          
        }else if (this.cmbTipoGtiaHipo.getSelectedIndex() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Tipo de Garantia");          
        }else if (this.txtSuperficie.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Superficie");
        } else if (this.txtDireCredito.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Dirección Crédito");
        } else if (this.txtRegCbr.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Registro CBR");
        } else if (this.txtRolSii.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rol SII");
        } else if (this.txtUniSuperficie.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Superficie");
        } else if (this.txtNum.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Número");
        } else if (this.txtMtsConstruHipo.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Metros Construidos");
        } else if (this.txtAñoRepertHipo.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Año Repertorio");
        } else if (this.txtFojasHipo.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese A.Fojas");
        }else if (this.txtMontoInicial.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Monto");
        }
        
        // Validacion Calendarios
        else if(this.txtFechaCreacion.getText().length() == 0) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Creacion");
        }
         else if (this.jcFechExtincionHipo.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Extincion");
        }
         else if (this.jcFechModifi.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Modificacion");
        }
         else if (this.jcFechUltDebito.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultimo Debito");
        }
         else if (this.jcFechUltRevalHipo.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultimo Reevaluo");
        }
         else if (this.jcFechUltCredHipo.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultima Creacion");
        }
         else if (this.jcFechUltTasacion.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultima Tasacion");
        }
        else {
            garaHipo.setRut_gara_hipo(this.txtRutGara.getText().trim());
            garaHipo.setApell_paterno_hipo(this.txtApellidoPaterno.getText().trim());
            garaHipo.setApell_materno_hipo(this.txtApellidoMaterno.getText().trim());
            garaHipo.setNombre_hipo(this.txtNombre.getText().trim());
            garaHipo.setFech_nac_hipo(this.txtFechNac.getText());
            garaHipo.setSexo_hipo(this.txtSexo.getText().trim());
            garaHipo.setCalle_hipo(this.txtCalleAvenida.getText().trim());
            garaHipo.setNum_dire_hipo(Integer.parseInt(this.txtNumero.getText().trim()));
            garaHipo.setDepto_hipo(this.txtDepto.getText().trim());
            garaHipo.setReg_hipo(this.txtRegion.getText().trim());
            garaHipo.setComu_hipo(this.txtComuna.getText().trim());
            garaHipo.setTel_part_hipo(Integer.parseInt(this.txtTelParticular.getText().trim()));
            garaHipo.setTel_mov_hipo(Integer.parseInt(this.txtTelMovil.getText().trim()));
            garaHipo.setSucursal_hipo(this.cmbSucursalHipo.getSelectedItem().toString());
            garaHipo.setCobertura_hipo(this.cmbCoberturaHipo.getSelectedItem().toString());
            garaHipo.setSuperficie_hipo(Integer.parseInt(this.txtSuperficie.getText().trim()));
            garaHipo.setDireccion_hipo(this.txtDireCredito.getText().trim());
            garaHipo.setRegistro_cbr_hipo(this.txtRegCbr.getText().trim());
            garaHipo.setRol_sii_hipo(this.txtRolSii.getText().trim());
            garaHipo.setUni_superficie_hipo(this.txtUniSuperficie.getText().trim()); 
            Date fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").parse(this.txtFechaCreacion.getText()));
            garaHipo.setFech_crea_hipo(fechaCreacion);
            garaHipo.setFech_ult_debito_hipo(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltDebito.getDate()));
            garaHipo.setMoneda_hipo(this.cmbMoneda.getSelectedItem().toString());
            garaHipo.setTipo_construccion_hipo(this.cmbTipoConstru.getSelectedItem().toString());
            garaHipo.setComuna_hipo(this.cmbComuna.getSelectedItem().toString());
            garaHipo.setEstado_constrib_hipo(this.cmbEstadoContribucion.getSelectedItem().toString());
            garaHipo.setLocalidad_reg_hipo(this.cmbLocalRegistro.getSelectedItem().toString());
            garaHipo.setNum_hipo(Integer.parseInt(this.txtNum.getText().trim()));
            garaHipo.setFech_ult_tasa_hipo(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltTasacion.getDate()));
            garaHipo.setFech_modifi_hipo(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechModifi.getDate()));
            garaHipo.setTipo_garantia_hipo(this.cmbTipoGtiaHipo.getSelectedItem().toString());
            garaHipo.setGrado_prefere_hipo(this.cmbGradoPrefereHipo.getSelectedItem().toString());
            garaHipo.setMts_construidos_hipo(Integer.parseInt(this.txtMtsConstruHipo.getText().trim()));
            garaHipo.setAnos_repertorio_hipo(Integer.parseInt(this.txtAñoRepertHipo.getText().trim()));
            garaHipo.setA_fojas_hipo(Integer.parseInt(this.txtFojasHipo.getText().trim()));
            garaHipo.setFech_extincion_hipo(new Date(this.jcFechExtincionHipo.getDate().getTime()));
            garaHipo.setFech_ult_revaluo_hipo(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltRevalHipo.getDate()));
            garaHipo.setFech_ult_credito_hipo(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltCredHipo.getDate()));
            garaHipo.setNombre_garantia_hipo("Hipotecaria");
            garaHipo.setDescrip_hipo(txtDescripcion.getText().trim());
            garaHipo.setComent_hipo(this.txtOtroComentario.getText().trim());

            garaHipo.setAdjuntar_hipo(this.txtArchivo.getText().trim());

            garaHipo.setMonto_inicial(Integer.parseInt(this.txtMontoInicial.getText().trim()));
            reg.creacionGarantiaHipotecaria(garaHipo, user);           
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia Hipotecaria almacenada con Exito");
            
            
        }
        }
     
     else
     {
         javax.swing.JOptionPane.showMessageDialog(this, "Número de Rol SII ya existe");
     }
    }
     else
     {
         javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut en Info Garante");
     }
     
        
      }catch(Exception e)
      {
          e.getMessage();
      }
      limpiar();
    }//GEN-LAST:event_btnGrabarActionPerformed

    private void txtSuperficieKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtSuperficieKeyReleased
        if (!this.txtSuperficie.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtSuperficie.setText("");
        }
    }//GEN-LAST:event_txtSuperficieKeyReleased

    private void txtDireCreditoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtDireCreditoKeyReleased
        if (!this.txtDireCredito.getText().matches("[ 0-9 A-Za-z Ññáéíóú]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo letras y/o números ");
            this.txtDireCredito.setText("");
        }
    }//GEN-LAST:event_txtDireCreditoKeyReleased

    private void txtRegCbrKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtRegCbrKeyReleased
        if (!this.txtRegCbr.getText().matches("[ 0-9 A-Za-z Ññáéíóú]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo letras y/o números ");
            this.txtRegCbr.setText("");
        }
    }//GEN-LAST:event_txtRegCbrKeyReleased

    private void txtRolSiiKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtRolSiiKeyReleased
        if (!this.txtRolSii.getText().matches("[ 0-9 A-Za-z Ññáéíóú]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo letras y/o números ");
            this.txtRolSii.setText("");
        }
    }//GEN-LAST:event_txtRolSiiKeyReleased

    private void txtUniSuperficieKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtUniSuperficieKeyReleased
        if (!this.txtUniSuperficie.getText().matches("[ 0-9 A-Za-z Ññáéíóú]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo letras y/o números ");
            this.txtUniSuperficie.setText("");
        }
    }//GEN-LAST:event_txtUniSuperficieKeyReleased

    private void txtNumKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtNumKeyReleased
        if (!this.txtNum.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtNum.setText("");
        }
    }//GEN-LAST:event_txtNumKeyReleased

    private void txtMtsConstruHipoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtMtsConstruHipoKeyReleased
        if (!this.txtMtsConstruHipo.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtMtsConstruHipo.setText("");
        }
    }//GEN-LAST:event_txtMtsConstruHipoKeyReleased

    private void txtAñoRepertHipoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtAñoRepertHipoKeyReleased
        if (!this.txtAñoRepertHipo.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtAñoRepertHipo.setText("");
        }
    }//GEN-LAST:event_txtAñoRepertHipoKeyReleased

    private void txtFojasHipoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtFojasHipoKeyReleased
        if (!this.txtFojasHipo.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFojasHipo.setText("");
        }
    }//GEN-LAST:event_txtFojasHipoKeyReleased

    private void cmbComunaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbComunaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbComunaActionPerformed

    private void btnExaminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarActionPerformed
         JFileChooser filechooser = new JFileChooser();
        int opcion = filechooser.showOpenDialog(this);
        if (opcion==JFileChooser.APPROVE_OPTION){
            txtArchivo.setText(filechooser.getSelectedFile().getPath());
    }//GEN-LAST:event_btnExaminarActionPerformed
    }
        private void btnExpoHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExpoHipoActionPerformed
        String rut=this.txtRutBuscar.getText().trim();
         reg.exportarGarantiaHipotecaria(rut);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_garantia_Hipotecaria.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarantiaHipotecaria.class.getName()).log(Level.SEVERE, null, ex);
        }
       
    }//GEN-LAST:event_btnExpoHipoActionPerformed

    private void txtMontoInicialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtMontoInicialActionPerformed
         if (!this.txtMontoInicial.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtMontoInicial.setText("");
        }
    }//GEN-LAST:event_txtMontoInicialActionPerformed

    private void btnAdjuntarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdjuntarActionPerformed
        if(!this.txtArchivo.getText().equals("")){
        garantiaHipotecariaDTO garaHipo = new garantiaHipotecariaDTO();
        garaHipo.setAdjuntar_hipo(this.txtArchivo.getText().trim());
        javax.swing.JOptionPane.showMessageDialog(this, "Archivo guardado");
        }else{
        javax.swing.JOptionPane.showMessageDialog(this, "Adjunte archivo");
        }
    }//GEN-LAST:event_btnAdjuntarActionPerformed

    private void btnImprimirIngresoGarantiaHipotecariaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirIngresoGarantiaHipotecariaActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaImprimirHipo.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaImprimirHipo.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaImprimirHipo.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaImprimirHipo.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Ingreso Hipotecario");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(IngresoGarantiaHipotecaria.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirIngresoGarantiaHipotecariaActionPerformed

    private void btnBuscarIngresoGarantiaHipotecariaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarIngresoGarantiaHipotecariaActionPerformed
        try
        {

            
            ArrayList<garantiaHipotecariaDTO> salida = reg.ListarPorRolHipo(this.txtBuscarRolSii.getText().trim());
            if(salida.isEmpty())
            {
                 
                 this.txtBuscarRolSii.setText(null);
                DefaultTableModel modelo =(DefaultTableModel)this.tbSalidaImprimirHipo.getModel();      
                modelo.setNumRows(0);
                javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
               
            }else
            {
            DefaultTableModel modelo =(DefaultTableModel)this.tbSalidaImprimirHipo.getModel(); 
          
            modelo.setColumnCount(0);
                if(modelo.getColumnCount() < 1)
                {
                    
                    Object[] arr1 ={"Rut: ","Nombre: ","Calle: ", "Garantía: ", "Número identificatorio Hipotecario: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal:  ",
                        "Cobertura: ","Superficie: ","Dirección (Crédito): ", "Registro CBR: ","Unidad Superficie: ",
                        "Fecha último débito: ","Moneda: ","Tipo construcción: ","Comuna: ","Estado contribución: ",
                        "Localidad Registro: ","Fecha última tasación: ","Tipo garantía: ","Grado preferencía: ",
                        "Metros. construidos: ","Años repertorios: ","A. Fojas: ","Fecha vencimiento: ","Fecha último Revaluo: ",
                        "Fecha último crédito: ",
                        "Usuario: " };
                    modelo.addColumn("Concepto", arr1);
                    
                    for(garantiaHipotecariaDTO x: salida)
                {
                    Object[] arr2 ={
                        x.getRut_gara_hipo(),
                        x.getNombre_hipo()  + "  " + x.getApell_materno_hipo() + "  " + x.getApell_materno_hipo(),
                        x.getCalle_hipo() + "   " +x.getNum_dire_hipo(),x.getNombre_garantia_hipo(),x.getRol_sii_hipo(),x.getFolio_garantia_hipo(),
                        x.getMonto_inicial(),x.getFech_crea_hipo(),x.getSucursal_hipo(),x.getCobertura_hipo(),x.getSuperficie_hipo(),
                        x.getDireccion_hipo()+"  "+x.getNum_hipo(),x.getRegistro_cbr_hipo(),x.getUni_superficie_hipo(),x.getFech_ult_debito_hipo(),
                        x.getMoneda_hipo(),x.getTipo_construccion_hipo(),x.getComuna_hipo(),x.getEstado_constrib_hipo(),
                        x.getLocalidad_reg_hipo(),x.getFech_ult_tasa_hipo(),x.getTipo_garantia_hipo(),x.getGrado_prefere_hipo(),
                        x.getMts_construidos_hipo(),x.getAnos_repertorio_hipo(),x.getA_fojas_hipo(),x.getFech_extincion_hipo(),x.getFech_ult_revaluo_hipo(),
                        x.getFech_ult_credito_hipo(),x.getNombre_usuario()
                        };
                     
                    modelo.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," "
                                    ," "," "," "," "," "," "," "," "," "," "
                                    ," "," "," "," "," "," "," "," "," "," "};
                    modelo.addColumn("Observaciones",arr3);
                    
                }
                
                
                
            
            }
        }catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarIngresoGarantiaHipotecariaActionPerformed

    private void btnMenuPrincialHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincialHipoActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaHipotecaria.this.dispose();
    }//GEN-LAST:event_btnMenuPrincialHipoActionPerformed
    
    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {IngresoGarantiaHipotecariagging.Logger.getLogger(IngresoGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {IngresoGarantiaHipotecariagging.Logger.getLogger(IngresoGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {IngresoGarantiaHipotecariagging.Logger.getLogger(IngresoGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {IngresoGarantiaHipotecariagging.Logger.getLogger(IngresoGarantiaHipotecaria2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//    IngresoGarantiaHipotecaria
//                new IngresoGarantiaHipotecaria2().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdjuntar;
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnBuscarIngresoGarantiaHipotecaria;
    private javax.swing.JButton btnExaminar;
    private javax.swing.JButton btnExpoHipo;
    private javax.swing.JButton btnGrabar;
    private javax.swing.JButton btnImprimirIngresoGarantiaHipotecaria;
    private javax.swing.JButton btnMenuPrinci;
    private javax.swing.JButton btnMenuPrincialHipo;
    private javax.swing.JButton btnMenuPrincipal;
    private javax.swing.JComboBox cmbCoberturaHipo;
    private javax.swing.JComboBox cmbComuna;
    private javax.swing.JComboBox cmbEstadoContribucion;
    private javax.swing.JComboBox cmbGradoPrefereHipo;
    private javax.swing.JComboBox cmbLocalRegistro;
    private javax.swing.JComboBox cmbMoneda;
    private javax.swing.JComboBox cmbSucursalHipo;
    private javax.swing.JComboBox cmbTipoConstru;
    private javax.swing.JComboBox cmbTipoGtiaHipo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private com.toedter.calendar.JDateChooser jcFechExtincionHipo;
    private com.toedter.calendar.JDateChooser jcFechModifi;
    private com.toedter.calendar.JDateChooser jcFechUltCredHipo;
    private com.toedter.calendar.JDateChooser jcFechUltDebito;
    private com.toedter.calendar.JDateChooser jcFechUltRevalHipo;
    private com.toedter.calendar.JDateChooser jcFechUltTasacion;
    private javax.swing.JLabel lblApellidoMater;
    private javax.swing.JLabel lblApellidoPater;
    private javax.swing.JLabel lblArchivo1;
    private javax.swing.JLabel lblCalleAvenida;
    private javax.swing.JLabel lblComuna;
    private javax.swing.JLabel lblDepto;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblFechNac;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblNumero;
    private javax.swing.JLabel lblRegion;
    private javax.swing.JLabel lblRut;
    private javax.swing.JLabel lblRutGara;
    private javax.swing.JLabel lblSexo;
    private javax.swing.JLabel lblTelMovil;
    private javax.swing.JLabel lblTelParticular;
    private javax.swing.JPanel pnlCreacionGaraHipo;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JTable tbSalidaImprimirHipo;
    private javax.swing.JTextField txtApellidoMaterno;
    private javax.swing.JTextField txtApellidoPaterno;
    private javax.swing.JTextField txtArchivo;
    private javax.swing.JTextField txtAñoRepertHipo;
    private javax.swing.JTextField txtBuscarRolSii;
    private javax.swing.JTextField txtCalleAvenida;
    private javax.swing.JTextField txtComuna;
    private javax.swing.JTextField txtDepto;
    private javax.swing.JTextArea txtDescripcion;
    private javax.swing.JTextField txtDireCredito;
    private javax.swing.JTextField txtFechNac;
    private javax.swing.JTextField txtFechaCreacion;
    private javax.swing.JTextField txtFojasHipo;
    private javax.swing.JTextField txtMontoInicial;
    private javax.swing.JTextField txtMtsConstruHipo;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtNum;
    private javax.swing.JTextField txtNumero;
    private javax.swing.JTextArea txtOtroComentario;
    private javax.swing.JTextField txtRegCbr;
    private javax.swing.JTextField txtRegion;
    private javax.swing.JTextField txtRolSii;
    private javax.swing.JTextField txtRutBuscar;
    private javax.swing.JTextField txtRutGara;
    private javax.swing.JTextField txtSexo;
    private javax.swing.JTextField txtSuperficie;
    private javax.swing.JTextField txtTelMovil;
    private javax.swing.JTextField txtTelParticular;
    private javax.swing.JTextField txtUniSuperficie;
    // End of variables declaration//GEN-END:variables

    private void limpiar() {
        txtSuperficie.setText(null);
        txtApellidoMaterno.setText(null);
        txtApellidoPaterno.setText(null);
        txtArchivo.setText(null);
        txtAñoRepertHipo.setText(null);
        txtAñoRepertHipo.setText(null);
        txtCalleAvenida.setText(null);
        txtComuna.setText(null);
        txtDepto.setText(null);
        txtDescripcion.setText(null);
        txtDireCredito.setText(null);
        txtDireCredito.setText(null);
        txtFechNac.setText(null);
        txtFojasHipo.setText(null);
        txtMtsConstruHipo.setText(null);
        txtMontoInicial.setText(null);
        txtNombre.setText(null);
        txtNum.setText(null);
        txtNumero.setText(null);
        txtOtroComentario.setText(null);
        txtRegCbr.setText(null);
        txtRegion.setText(null);
        txtRolSii.setText(null);
        txtRutBuscar.setText(null);
        txtSexo.setText(null);
        txtSuperficie.setText(null);
        txtTelMovil.setText(null);
        txtTelParticular.setText(null);
        txtUniSuperficie.setText(null);
        txtRutGara.setText(null);
        cmbSucursalHipo.setSelectedItem("Seleccione");
        cmbComuna.setSelectedItem("Seleccione");
        cmbEstadoContribucion.setSelectedItem("Seleccione");
        cmbGradoPrefereHipo.setSelectedItem("Seleccione");
        cmbLocalRegistro.setSelectedItem("Seleccione");
        cmbMoneda.setSelectedItem("Seleccione");
        cmbCoberturaHipo.setSelectedItem("Seleccione");
        cmbTipoConstru.setSelectedItem("Seleccione");
        cmbTipoGtiaHipo.setSelectedItem("Seleccione");
        jcFechExtincionHipo.setCalendar(null);
        jcFechModifi.setCalendar(null);
        jcFechUltCredHipo.setCalendar(null);
        jcFechUltDebito.setCalendar(null);
        jcFechUltRevalHipo.setCalendar(null);
        jcFechUltTasacion.setCalendar(null);
    }
}
